﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DAO;
using DTO;
namespace Banking.Member
{
    public partial class LichSuTruyCapctrl : UserControl
    {

        LichSuTruyCap ls = new LichSuTruyCap();
        public LichSuTruyCapctrl()
        {
            InitializeComponent();
        }
        public void LoadLichSuTruyCap(int maTK)
        {
            dgvLichSuTruyCap.DataSource = LichSuTruyCapDA.GetByMaTaiKhoan(maTK);
            dgvLichSuTruyCap.Columns["MaTK"].Visible = false;
            dgvLichSuTruyCap.Columns["TaiKhoanDangNhap"].Visible = false;
        }
        public LichSuTruyCap LoadLichSuTruyCapGanNhat(int ma)
        {
            List<LichSuTruyCap> ls= new List<LichSuTruyCap>();
            ls = LichSuTruyCapDA.GetByMaTaiKhoan(ma);
            return ls[0];
        }
    }
}
